<template>
<div>
  <topOne></topOne>
  <NewContent :tocontent="msg" :tocontents="custom"></NewContent>
</div>

</template>

<script>
import topOne from "@/components/topOne";
import NewContent from "@/components/NewContent";
export default {
  name: "DetailView",
  components:{
    NewContent,
    topOne
  },
  data(){
    return{
      msg:'',
      custom:''
    }
  },
  // props: {
  //   content: {
  //     type: [String, Number],
  //     default: ''
  //   },
    created(){
      // console.log()
      this.msg=this.$route.query.categoryId
      this.custom = this.$route.query.articleId
      // console.log(this.$route.query.categoryId)
      // console.log(this.msg)
    }

  // },
}
</script>

<style scoped>

</style>